package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.pojo.Category;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 * Created By Kinsey
 * Date: 2017/12/26
 * Time: 22:57
 */
public interface ICategoryService {
    ServerResponse addCategory(String categoryName,Integer parentId);

    ServerResponse updateCategory(String categoryName ,Integer categoryId);

    ServerResponse<List<Category>> getChilderCategory(Integer categoryId);

    ServerResponse selectCategoryAndChilderById(Integer categoryId);
}
